package com.jf3q.sup.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.sup.domain.ProductCategories;
import com.jf3q.sup.dto.ProductCategoriesDto;
import com.jf3q.sup.service.ProductCategoriesService;
import com.jf3q.sup.mapper.ProductCategoriesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class ProductCategoriesServiceImpl extends ServiceImpl<ProductCategoriesMapper, ProductCategories>
    implements ProductCategoriesService{
    @Autowired
    ProductCategoriesMapper productCategoriesMapper;

    @Override
    public Page<ProductCategories> commodityAllPage(ProductCategoriesDto categoriesDto) {
        Page<ProductCategories> page = new Page<>(categoriesDto.getPageNum(), categoriesDto.getPageSize());
        Page<ProductCategories> pages = productCategoriesMapper.merchandiseAllPage(page, categoriesDto);
        return pages;
    }
}




